package com.lagou;

import com.lagou.rpc.netty.RpcServerBootStrap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @ClassName RpcServerApplication
 * @Description
 * @Author playboy
 * @Date 2021/6/5 3:14 下午
 * @Version 1.0
 **/
@SpringBootApplication
public class RpcServerApplication implements CommandLineRunner {

	public static void main(String[] args) {
		SpringApplication.run(RpcServerApplication.class, args);
	}

	@Autowired
	private RpcServerBootStrap rpcServerBootStrap;

	@Override
	public void run(String... args) throws Exception {
		rpcServerBootStrap.rpcStart();
	}
}
